import axios from '@/libs/api.request'


export const getTestsuiteResults = (val) => {
  return axios.request({
    url: 'api/HttpAutoTestService/testsuite_results/',
    params: val,
    method: 'get'
  })
};

export const getTestsuiteResultById = (id) => {
  return axios.request({
    url: `api/HttpAutoTestService/testsuite_results/${id}/`,
    method: 'get'
  })
};

export const batchDeleteTestsuiteResult = (data) => {
  return axios.request({
    url: 'api/HttpAutoTestService/testsuite_result/batch_delete/',
    method: 'delete',
    data: data
  })
};

export const getTestsuiteResultVersions = () => {
  return axios.request({
    url: 'api/HttpAutoTestService/testsuite_result/version/',
    method: 'get'
  })
}